/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.beans.Users;
import com.metier.UsersMetier;

/**
 * 
 * @author moussa
 */
public class PanelModifierConsultation extends javax.swing.JPanel {
	String loginCorrespondant;
	String nom;
	String prenom;
	String login;
	String email;

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public String getProfil() {
		return profil;
	}

	public void setProfil(String profil) {
		this.profil = profil;
	}

	String password;
	String phone;
	String adresse;
	String profil;

	public String getLoginCorrespondant() {
		return loginCorrespondant;
	}

	public void setLoginCorrespondant(String loginCorrespondant) {
		this.loginCorrespondant = loginCorrespondant;
	}

	/**
	 * Creates new form PanelModifierConsultation
	 */
	public PanelModifierConsultation() {
		panConsultant = new PanelConsultant();

		initComponents();
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {

		labelNom = new javax.swing.JLabel();
		textFieldNom = new javax.swing.JTextField();
		labelPrenom = new javax.swing.JLabel();
		textFieldPrenom = new javax.swing.JTextField();
		labelLogin = new javax.swing.JLabel();
		textFieldLogin = new javax.swing.JTextField();
		labelPassword = new javax.swing.JLabel();

		textFieldPassword = new javax.swing.JPasswordField();
		textFieldPassword.setText("passer");
		labelEmail = new javax.swing.JLabel();
		textFieldEmail = new javax.swing.JTextField();
		labelPhone = new javax.swing.JLabel();
		textFieldPhone = new javax.swing.JTextField();
		labelProfil = new javax.swing.JLabel();
		textFieldProfil = new javax.swing.JTextField();
		labelAdresse = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jScrollPane1 = new javax.swing.JScrollPane();
		textAreaAdresse = new javax.swing.JTextArea();
		buttonValider = new javax.swing.JButton();
		buttonAnnuler = new javax.swing.JButton();
		jLabel1 = new javax.swing.JLabel();

		setPreferredSize(new java.awt.Dimension(1056, 410));

		labelNom.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelNom.setText("Nom :");

		textFieldNom.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				textFieldNomActionPerformed(evt);
			}
		});

		labelPrenom.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelPrenom.setText("Prenom :");

		labelLogin.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelLogin.setText("Login :");

		textFieldLogin.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				textFieldLoginActionPerformed(evt);
			}
		});

		labelPassword.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelPassword.setText("Password :");

		labelEmail.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelEmail.setText("Email :");

		textFieldEmail.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				textFieldEmailActionPerformed(evt);
			}
		});

		labelPhone.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelPhone.setText("Phone :");

		textFieldPhone.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				textFieldPhoneActionPerformed(evt);
			}
		});

		labelProfil.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelProfil.setText("Profil :");

		textFieldProfil.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N

		labelAdresse.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		labelAdresse.setText("Adresse :");

		jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/com/photos/profil.gif"))); // NOI18N

		textAreaAdresse.setColumns(20);
		textAreaAdresse.setRows(5);
		jScrollPane1.setViewportView(textAreaAdresse);

		buttonValider.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		buttonValider.setText("VALIDER");
		buttonValider.addActionListener(new ActionListener() {

		
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				userModifi = new Users();
				nom = textFieldNom.getText();
				prenom = textFieldPrenom.getText();
				login = textFieldLogin.getText();
				email = textFieldEmail.getText();
				password = textFieldPassword.getText();
				phone = textFieldPhone.getText();
				adresse = textAreaAdresse.getText();
				profil = textFieldProfil.getText();

			}

		});

		buttonAnnuler.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		buttonAnnuler.setText("ANNULER");

		jLabel1.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
		jLabel1.setText("     Photo de profil");

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING,
												false)
												.addGroup(
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addGap(34,
																										34,
																										34)
																								.addComponent(
																										labelProfil,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										102,
																										javax.swing.GroupLayout.PREFERRED_SIZE))
																				.addGroup(
																						layout.createSequentialGroup()
																								.addGap(25,
																										25,
																										25)
																								.addComponent(
																										labelAdresse,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										102,
																										javax.swing.GroupLayout.PREFERRED_SIZE)))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		32,
																		Short.MAX_VALUE)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						textFieldProfil,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						194,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						jScrollPane1,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						191,
																						javax.swing.GroupLayout.PREFERRED_SIZE)))
												.addGroup(
														layout.createSequentialGroup()
																.addGap(34, 34,
																		34)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				false)
																				.addComponent(
																						labelEmail,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						labelLogin,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						labelNom,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						labelPrenom,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						labelPassword,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						102,
																						Short.MAX_VALUE)
																				.addComponent(
																						labelPhone,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE))
																.addGap(32, 32,
																		32)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addGroup(
																						layout.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING,
																								false)
																								.addComponent(
																										textFieldLogin,
																										javax.swing.GroupLayout.Alignment.TRAILING,
																										javax.swing.GroupLayout.DEFAULT_SIZE,
																										194,
																										Short.MAX_VALUE)
																								.addComponent(
																										textFieldPrenom,
																										javax.swing.GroupLayout.Alignment.TRAILING)
																								.addComponent(
																										textFieldNom,
																										javax.swing.GroupLayout.Alignment.TRAILING)
																								.addComponent(
																										textFieldPassword))
																				.addGroup(
																						layout.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																								.addComponent(
																										textFieldPhone,
																										javax.swing.GroupLayout.Alignment.TRAILING)
																								.addComponent(
																										textFieldEmail)))))
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.LEADING)
												.addGroup(
														layout.createSequentialGroup()
																.addGap(42, 42,
																		42)
																.addComponent(
																		buttonValider)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addComponent(
																		buttonAnnuler)
																.addGap(19, 19,
																		19))
												.addGroup(
														javax.swing.GroupLayout.Alignment.TRAILING,
														layout.createSequentialGroup()
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING,
																				false)
																				.addComponent(
																						jLabel10,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						jLabel1,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE))
																.addGap(40, 40,
																		40)))));
		layout.setVerticalGroup(layout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						layout.createSequentialGroup()
								.addContainerGap()
								.addGroup(
										layout.createParallelGroup(
												javax.swing.GroupLayout.Alignment.TRAILING)
												.addGroup(
														layout.createSequentialGroup()
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						labelNom,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						14,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						textFieldNom,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						27,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						labelPrenom)
																				.addComponent(
																						textFieldPrenom,
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						26,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						textFieldLogin,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						31,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						labelLogin,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						26,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addGroup(
																						layout.createSequentialGroup()
																								.addComponent(
																										labelPassword,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										26,
																										javax.swing.GroupLayout.PREFERRED_SIZE)
																								.addGap(2,
																										2,
																										2))
																				.addGroup(
																						javax.swing.GroupLayout.Alignment.TRAILING,
																						layout.createSequentialGroup()
																								.addComponent(
																										textFieldPassword,
																										javax.swing.GroupLayout.PREFERRED_SIZE,
																										26,
																										javax.swing.GroupLayout.PREFERRED_SIZE)
																								.addPreferredGap(
																										javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						textFieldEmail,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						26,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						labelEmail,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						23,
																						javax.swing.GroupLayout.PREFERRED_SIZE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						textFieldPhone,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						26,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						labelPhone,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.TRAILING,
																				false)
																				.addComponent(
																						labelProfil,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						javax.swing.GroupLayout.DEFAULT_SIZE,
																						Short.MAX_VALUE)
																				.addComponent(
																						textFieldProfil))
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																				.addComponent(
																						labelAdresse,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						24,
																						javax.swing.GroupLayout.PREFERRED_SIZE)
																				.addComponent(
																						jScrollPane1,
																						javax.swing.GroupLayout.PREFERRED_SIZE,
																						52,
																						javax.swing.GroupLayout.PREFERRED_SIZE)))
												.addGroup(
														layout.createSequentialGroup()
																.addComponent(
																		jLabel10,
																		javax.swing.GroupLayout.PREFERRED_SIZE,
																		180,
																		javax.swing.GroupLayout.PREFERRED_SIZE)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																.addComponent(
																		jLabel1)
																.addPreferredGap(
																		javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																		javax.swing.GroupLayout.DEFAULT_SIZE,
																		Short.MAX_VALUE)
																.addGroup(
																		layout.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.BASELINE)
																				.addComponent(
																						buttonValider)
																				.addComponent(
																						buttonAnnuler))))
								.addContainerGap(110, Short.MAX_VALUE)));
	}// </editor-fold>//GEN-END:initComponents

	private void textFieldNomActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_textFieldNomActionPerformed
		// TODO add your handling code here:
	}// GEN-LAST:event_textFieldNomActionPerformed

	private void textFieldLoginActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_textFieldLoginActionPerformed
		// TODO add your handling code here:
	}// GEN-LAST:event_textFieldLoginActionPerformed

	private void textFieldEmailActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_textFieldEmailActionPerformed
		// TODO add your handling code here:
	}// GEN-LAST:event_textFieldEmailActionPerformed

	private void textFieldPhoneActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_textFieldPhoneActionPerformed
		// TODO add your handling code here:
	}// GEN-LAST:event_textFieldPhoneActionPerformed

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JButton buttonAnnuler;
	private javax.swing.JButton buttonValider;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JLabel labelAdresse;
	private javax.swing.JLabel labelEmail;
	private javax.swing.JLabel labelLogin;
	private javax.swing.JLabel labelNom;
	private javax.swing.JLabel labelPassword;
	private javax.swing.JLabel labelPhone;
	private javax.swing.JLabel labelPrenom;

	public javax.swing.JTextArea getTextAreaAdresse() {
		return textAreaAdresse;
	}

	public void setTextAreaAdresse(javax.swing.JTextArea textAreaAdresse) {
		this.textAreaAdresse = textAreaAdresse;
	}

	public javax.swing.JTextField getTextFieldEmail() {
		return textFieldEmail;
	}

	public void setTextFieldEmail(javax.swing.JTextField textFieldEmail) {
		this.textFieldEmail = textFieldEmail;
	}

	public javax.swing.JTextField getTextFieldLogin() {
		return textFieldLogin;
	}

	public void setTextFieldLogin(javax.swing.JTextField textFieldLogin) {
		this.textFieldLogin = textFieldLogin;
	}

	public javax.swing.JTextField getTextFieldNom() {
		return textFieldNom;
	}

	public void setTextFieldNom(javax.swing.JTextField textFieldNom) {
		this.textFieldNom = textFieldNom;
	}

	public javax.swing.JTextField getTextFieldPhone() {
		return textFieldPhone;
	}

	public void setTextFieldPhone(javax.swing.JTextField textFieldPhone) {
		this.textFieldPhone = textFieldPhone;
	}

	public javax.swing.JTextField getTextFieldPrenom() {
		return textFieldPrenom;
	}

	public void setTextFieldPrenom(javax.swing.JTextField textFieldPrenom) {
		this.textFieldPrenom = textFieldPrenom;
	}

	public javax.swing.JTextField getTextFieldProfil() {
		return textFieldProfil;
	}

	public void setTextFieldProfil(javax.swing.JTextField textFieldProfil) {
		this.textFieldProfil = textFieldProfil;
	}

	private javax.swing.JLabel labelProfil;
	private javax.swing.JTextArea textAreaAdresse;
	private javax.swing.JTextField textFieldEmail;
	private javax.swing.JTextField textFieldLogin;
	private javax.swing.JTextField textFieldNom;

	public javax.swing.JPasswordField getTextFieldPassword() {
		return textFieldPassword;
	}

	public void setTextFieldPassword(
			javax.swing.JPasswordField textFieldPassword) {
		this.textFieldPassword = textFieldPassword;
	}

	private javax.swing.JPasswordField textFieldPassword;
	private javax.swing.JTextField textFieldPhone;
	private javax.swing.JTextField textFieldPrenom;
	private javax.swing.JTextField textFieldProfil;
	PanelConsultant panConsultant;

	public Users getUserModifi() {
		return userModifi;
	}

	public void setUserModifi(Users userModifi) {
		this.userModifi = userModifi;
	}

	UsersMetier userMetier;
	Users users;
	Users userModifi;
	// End of variables declaration//GEN-END:variables
}
